<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Notes</title>
</head>

<body>
<p>From a post regarding PHP paths:</p>
<hr />
<p>Well, there's $_SERVER['DOCUMENT_ROOT'] - but in a shared environment this
  might not be YOUR document root. For example on OS X my HTTP document root
  is /Users/gavinjames/Sites/ but $_SERVER['DOCUMENT_ROOT'] gives /Library/WebServer/Documents/
which is the web server's HTTP document root.</p>
<p>The easiest solution is to have a variable in a config file such as $CONFIG['DOCUMENT_ROOT']
  or $CONFIG['APPLICATION_ROOT'] and set the path explicitly.</p>
<p>You also can't reliably use '../mailer.php' as if it's included from a file
  in a different location it will be trying to load that file relative to that
  location.</p>
<hr />
<p>&nbsp;</p>
</body>
</html>
